package com.example.swaggertest.service.impl;

import com.example.swaggertest.domain.Student;
import com.example.swaggertest.repository.StudentRepository;
import com.example.swaggertest.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: zhangy
 * @Date: 2018/9/12 22:00
 * @Description:
 **/

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentRepository studentRepository;

    @Override
    public Student selectStudentById(Integer Id) {
        return studentRepository.findById(Id).get();
    }
}
